<?php $this->registerCssFile("@web/css/sign.css",['depends'=>['app\assets\AppAsset']]);?>
<?php $this->registerCssFile("@web/css/loading.css",['depends'=>['app\assets\AppAsset']]);?>
<?php $this->registerJsFile("@web/js/loading.js",['depends'=>['app\assets\AppAsset']]);?>
<?php $this->registerJsFile("@web/js/exc.js",['depends'=>['app\assets\AppAsset']]);?>
<?php $this->registerJsFile("@web/js/sign.js",['depends'=>['app\assets\AppAsset']]);?>
<script>
    var a=<?= isset($ret_in_mes)?$ret_in_mes:0 ?>;
    var b=<?= isset($ret_up_mes)?$ret_up_mes:100 ?>;
</script>
<div class="sign">
    <h1><span>给</span>你的宝物指路</h1>
    <ul class="sign-nav list-unstyled row">
        <li class="col-xs-6 active-bar">注册</li>
        <li class="col-xs-6">登录</li>
    </ul>
    <div class="sign-up sign-nav-dis">
        <form action="?r=site/signup" class="form form-horizontal" id="u_sign_up" method="post">
            <div class="form-group">
                <label for="s-up-id" class="sr-only">学号</label>
                <input type="text" id="s-up-id" name="username" class="form-control bg-danger" placeholder="学号/工号">
            </div>
            <div class="form-group">
                <label for="s-up-pa" class="sr-only">密码</label>
                <input type="password" id="s-up-pa" name="password" class="form-control" placeholder="密码">
            </div>
            <div class="form-group">
                <label for="s-up-email" class="sr-only">邮箱</label>
                <input type="text" id="s-up-email" name="email" class="form-control" placeholder="常用邮箱">
            </div>
            <div class="form-group">
                <button class="btn btn-primary btn-lg" id="signup-button">注册</button>
            </div>
            <input name="_csrf" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>">
        </form>
    </div>
    <div class="sign-in sign-nav-dis hidden">
        <form action="?r=site/signin" class="form form-horizontal" method="post">
            <div class="form-group">
                <label for="s-in-id" class="sr-only">学号</label>
                <input type="text" id="s-in-id" name="username" class="form-control" placeholder="学号/工号">
            </div>
            <div class="form-group">
                <label for="s-in-pa" class="sr-only">密码</label>
                <input type="password" id="s-in-pa" name="password" class="form-control" placeholder="密码">
            </div>
            <div class="form-group">
                <button class="btn btn-primary btn-lg" id="signin-button" type="submit">登录</button>
            </div>
            <input name="_csrf" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>">
        </form>
    </div>
</div>
<div id="loading">
</div>
